﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addTvStationPeople.aspx.cs" Inherits="Com.CMS263.Web.manage.TvStation.addTvStationPeople" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
              <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <link href="../common/validator.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        function save() {
            if ($("#tvStationId").val() == "0") {
                alert("电视台必选！");
                $("#tvStationId").focus();
                return false;
            } else if ($("#Name").val().length < 1) {
                alert("姓名必填！");
                $("#Name").focus();
                return false;
            } else if ($("#headPic").val().length < 1) {
                alert("头像必填！");
                $("#headPic").focus();
                return false;
            } else {
                return true;
            }
        } 
    </script>
</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data">
    <div>
        <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <td height="23" colspan="2" class="table_2">
                    添加/修改 <asp:label runat="server" id="lbTypeName">电视台主持人</asp:label>
                </td>
            </tr>
             <tr>
                <td >
                    电视台:
                </td>
                <td >
                 <select name="tvStationId" id="tvStationId">
                 <option value="0">请选择...</option>
                 <%foreach (var item in tvList){
                      %>
                      
                      <option value="<%=item.Id %>"><%=item.Name %></option><%}%>                
                 </select>
                &nbsp;</td>
            </tr>  
            <tr>
                <td >
                    名称:
                </td>
                <td >
                 <input type="text" name="Name" id="Name" size="50" />
                &nbsp;</td>
            </tr>  
            <tr>
                <td class="tdleft">
                    头像(152*164)</td>
                <td class="tdside">                
                    <input type='file' name="headPic" id="headPic" />                    
                </td>
            </tr>
          <tr>
                <td class="tdleft">
                    描述</td>
                <td class="tdside">               
                    
                    <textarea  name="description" id="description"  cols='45' rows='5'></textarea>
                </td>
            </tr>            
            <tr>
                    <td class="tdleft">
                       </td>
                    <td class="tdside">
                        <asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click"  OnClientClick="return save();" />                         
                    </td>
                </tr>
        </table>
    </div>
    </form>
</body>
</html>
